home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-11
/
rlib.zip
/
RL_BEEP.PRG
< prev
next >
Wrap
Text File
|
1993-01-04
|
726b
|
18 lines
* Function: Beep
* Author..: Richard C. Low
* Syntax..: BEEP([exp<N>])
* Returns.: Null string after ringing the bell (CHR(7)) exp<N> times
* Parameter exp<N> is optional, if omitted bell is rung once.
*
FUNCTION BEEP
PARAMETER p_num
PRIVATE f_x && private counter variable
IF TYPE('p_num') = 'N' && make sure parm is numeric
FOR f_x = 1 TO p_num && if so, beep that many times
?? CHR(7)
NEXT f_x
ELSE && if no parm or not numeric
?? CHR(7) && beep only once
ENDIF
RETURN ('') && must return something